package com.itheima.web;

import com.itheima.service.CheckItemGroupService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/checkItemGroup")
public class CheckItemGroupController {

    @Reference
    private CheckItemGroupService checkItemGroupService;

    @RequestMapping("/selectByGroupId/{groupId}")
    public Long[] selectByGroupId(@PathVariable("groupId") Long groupId){
        return checkItemGroupService.selectByGroupId(groupId);
    }






    @GetMapping("/test")
    public void test(){
        System.out.println(1/0);
    }
}
